#bilibili用户管理系统

from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.uic import loadUiType
from index import *
import hashlib
import enter_ui
import tu_rc
import sys

# UI--Logic分离
privacy, _ = loadUiType('privacy.ui')

class PrivacyApp(QMainWindow,privacy):

    #定义构造方法
    def __init__(self):
        QMainWindow.__init__(self)
        self.setupUi(self)
        self.handle_buttons()
        self.show()

    def handle_buttons(self):
        self.privacy_back_Button.clicked.connect(self.enter)

    def enter(self):
        reply = QMessageBox.question(self, '确认', '我已阅读隐私政策？', QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
        if reply == QMessageBox.Yes:
            self.enter_app = enter_ui.EnterApp()
            self.close()
            self.enter_app.show()

def main():
    app = QApplication([])
    window = PrivacyApp()
    window.show()
    app.exec_()


if __name__ == '__main__':
    main()
